package com.fus.webservice;

import javax.jws.WebService;

import org.springframework.stereotype.Component;

/**
 * webservice测试接口实现
 * @author fushuai
 * @date 2018.8.17
 */
@WebService(serviceName = "TestService", // 与接口中指定的name一致
targetNamespace = "http://service.fus.com", // 与接口中的命名空间一致,一般是接口的包名倒
endpointInterface = "com.fus.webservice.TestService"// 接口地址
)
@Component
public class TestServiceImpl implements TestService {

    @Override
    public String sendMessage(String username) {
        System.out.println("服务端运行");
        return "hello hahah"+username;
    }

}
